
import com.mapper01.Book01Mapper;
import com.util.DbHeper;

import org.apache.ibatis.session.SqlSession;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.io.IOException;


/**
 * Created by webrx on 2017/6/23.
 */
public class DOm09 {
   SqlSession ss;
  Book01Mapper book;
    @Before
    public void init() throws IOException {
        DbHeper db = new DbHeper();
         ss =db.getSession();
         book= ss.getMapper(Book01Mapper.class);
    }
    @After
    public void close(){
        ss.commit();
        ss.close();
    }
    @Test
    public void  show(){
        System.out.println("***********");
    }
}
